﻿using DH.Core.MapperHelper;
using DH.Core.UI.ViewModel;
using DH.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DH.Service.ViewModels
{
    [MapToType(typeof(OrganizeEntity))]
    public class TreeSelectViewModel: EntityModelBase
    {
        [MapToMember("Id")]
        public string id { get; set; }

        [MapToMember("FullName")]
        public string text { get; set; }

        [MapToMember("ParentId")]
        public string parentId { get; set; }
        
        public object data { get; set; }

        public string iconCls { get; set; }

        public List<TreeSelectViewModel> children { get; set; }
    }
}
